package com.example.project;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/calc")
@RestController
public class CalcCount {
    @RequestMapping("/sum")
    public String sum(int num1,int num2){
        int result = num1+num2;
        return "运算结果位:"+ result;

    }
}
